﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class FrameMasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string strPage = HttpContext.Current.Request.Url.ToString().Substring(HttpContext.Current.Request.Url.ToString().LastIndexOf('/') + 1);

            if ("frmAdministrativeHome.aspx".Equals(strPage))
            {
                lblFirstTitle.Text = "<font style='color:#ec6614;'>" + "欢迎进入网上用户中心" + "</font>";

            }
            else
            {

                //DataTable tblNavigation = (DataTable)(Session[SessionType.CurrentSiteTable]);

                //if (tblNavigation.Select("A = '" + HttpContext.Current.Request.Url.ToString() + "'").Length > 0)
                //{
                //    Session[SessionType.CurrentSite] = tblNavigation.Select("A = '" + HttpContext.Current.Request.Url.ToString() + "'")[0]["B"].ToString().Trim();
                //}
                //if (Session[SessionType.CurrentSite] != null)
                //{
                //    lblFirstTitle.Text = "<font style='color:#5b5b5b;'>" + Session[SessionType.CurrentSite].ToString().Trim() + "</font>";
                //}
                
            }
        }
        catch
        {
        }
    }
}
